![]() |
WOLF core
WOLF: A Modular Estimation Framework for Robotics
|
Buffer for arbitrary type objects. More...
#include <core/processor/buffer.h>
Public Types | |
| typedef std::map< TimeStamp, T >::iterator | Iterator |
| typedef std::map< TimeStamp, T >::const_iterator | ConstIterator |
Public Member Functions | |
| Buffer () | |
| ~Buffer (void) | |
| T | select (const TimeStamp &_time_stamp, const double &_time_tolerance) const |
| Select an element from the buffer. More... | |
| ConstIterator | selectIterator (const TimeStamp &_time_stamp, const double &_time_tolerance) const |
| Select an element iterator from the buffer. More... | |
| Iterator | selectIterator (const TimeStamp &_time_stamp, const double &_time_tolerance) |
| T | selectFirstBefore (const TimeStamp &_time_stamp, const double &_time_tolerance) const |
| T | selectLastAfter (const TimeStamp &_time_stamp, const double &_time_tolerance) const |
| T | selectFirst () const |
| T | selectLast () const |
| SizeStd | size (void) const |
| Buffer size. More... | |
| void | emplace (const TimeStamp &_time_stamp, const T &_element) |
| Add a element to the buffer. More... | |
| const std::map< TimeStamp, T > & | getContainer () const |
| returns the container with elements of the buffer More... | |
| std::map< TimeStamp, T > & | getContainer () |
| void | removeUpTo (const TimeStamp &_time_stamp) |
| Remove all elements in the buffer with a time stamp older than the specified. More... | |
| void | removeUpToLower (const TimeStamp &_time_stamp) |
| Remove all elements in the buffer with a time stamp older than the specified. More... | |
| void | clear () |
| Clear the buffer. More... | |
| bool | empty () const |
| is the buffer empty ? More... | |
Static Public Member Functions | |
| static bool | checkTimeTolerance (const TimeStamp &_time_stamp1, const TimeStamp &_time_stamp2, const double &_time_tolerance) |
| Check time tolerance. More... | |
| static bool | doubleCheckTimeTolerance (const TimeStamp &_time_stamp1, const double &_time_tolerance1, const TimeStamp &_time_stamp2, const double &_time_tolerance2) |
| Check time tolerance. More... | |
Protected Attributes | |
| std::map< TimeStamp, T > | container_ |
Buffer for arbitrary type objects.
Object and functions to manage a buffer of objects.
| typedef std::map<TimeStamp,T>::const_iterator wolf::Buffer< T >::ConstIterator |
| typedef std::map<TimeStamp,T>::iterator wolf::Buffer< T >::Iterator |
|
inline |
|
inline |
|
inlinestatic |
Check time tolerance.
Check if the time distance between two time stamps is smaller than the time tolerance.
|
inline |
Clear the buffer.
|
inlinestatic |
Check time tolerance.
Check if the time distance between two time stamps is smaller than the minimum time tolerance of the two frames.
|
inline |
Add a element to the buffer.
|
inline |
is the buffer empty ?
|
inline |
|
inline |
returns the container with elements of the buffer
elements are ordered from most recent to oldest
|
inline |
Remove all elements in the buffer with a time stamp older than the specified.
|
inline |
Remove all elements in the buffer with a time stamp older than the specified.
|
inline |
Select an element from the buffer.
Select from the buffer the closest element (w.r.t. time stamp), respecting a defined time tolerances
|
inline |
|
inline |
|
inline |
|
inline |
Select an element iterator from the buffer.
Select from the buffer the iterator pointing to the closest element (w.r.t. time stamp), respecting a defined time tolerances
|
inline |
|
inline |
|
inline |
Buffer size.
|
protected |